using Net35.Xrm.Sdk.Metadata;
using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class UpdateRelationshipRequest : OrganizationRequest
	{
		public RelationshipMetadataBase Relationship
		{
			get
			{
				if (base.Parameters.Contains("Relationship"))
				{
					return (RelationshipMetadataBase)base.Parameters["Relationship"];
				}
				return null;
			}
			set
			{
				base.Parameters["Relationship"] = value;
			}
		}
		public bool MergeLabels
		{
			get
			{
				return base.Parameters.Contains("MergeLabels") && (bool)base.Parameters["MergeLabels"];
			}
			set
			{
				base.Parameters["MergeLabels"] = value;
			}
		}
		public string SolutionUniqueName
		{
			get
			{
				if (base.Parameters.Contains("SolutionUniqueName"))
				{
					return (string)base.Parameters["SolutionUniqueName"];
				}
				return null;
			}
			set
			{
				base.Parameters["SolutionUniqueName"] = value;
			}
		}
		public UpdateRelationshipRequest()
		{
			base.RequestName = "UpdateRelationship";
			this.Relationship = null;
			this.MergeLabels = false;
		}
	}
}
